package com.example.demo.service;


import com.example.demo.domain.HelloSpring;
import com.example.demo.domain.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class SpringStudyService {
    @Autowired
    private HelloSpring helloSpring;

    public static void main(String[] args) {
//        ApplicationContext context = new FileSystemXmlApplicationContext("src/main/resources/beans/beans.xml");
////        HelloSpring hs = context.getBean("helloSpring", HelloSpring.class);
////        hs.sayHello();
//        Person p_c=context.getBean("person-cons",Person.class);
////        Person p_s=context.getBean("person_set",Person.class);
//        System.out.println(p_c);
//        System.out.println(p_s);
        String a="abc";
        String b="abc";
        String c=new String("abc");
        System.out.println(a==b);
    }
}
